package com.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.EmployDAO;
import com.entity.Employ;
import com.service.EmployService;

@Service("employService")
public class EmployServiceImpl implements EmployService {
	@Autowired
	@Resource
	private EmployDAO employDAO;

	public int insertEmploy(Employ employ) {
		return this.employDAO.insertEmploy(employ);
	}

	public int updateEmploy(Employ employ) {
		return this.employDAO.updateEmploy(employ);
	}

	public int deleteEmploy(String employid) {
		return this.employDAO.deleteEmploy(employid);
	}

	public List<Employ> getAllEmploy() {
		return this.employDAO.getAllEmploy();
	}

	public List<Employ> getEmployByCond(Employ employ) {
		return this.employDAO.getEmployByCond(employ);
	}

	public List<Employ> getEmployByLike(Employ employ) {
		return this.employDAO.getEmployByLike(employ);
	}

	public Employ getEmployById(String employid) {
		return this.employDAO.getEmployById(employid);
	}

}
